package com.bizark.rpc.common.tool;


public class StringUtil {
    /**
     * 判断对象是否为空
     * @param obj
     * @return 为空返回true
     */
    public static boolean isNullOrEmpty(Object obj) {
        return obj==null||String.valueOf(obj).length()==0;
    }

    /**
     * 连接字符串
     *
     * @param values
     * @return
     */
    public static String combineString(Object... values) {
        StringBuilder builder = new StringBuilder();
        for (Object str : values) {
            builder.append(str);
        }
        return builder.toString();
    }

}
